package com.java1234.jxc.service;

import com.java1234.jxc.beans.SysRole;
import com.java1234.jxc.core.base.BaseService;

import java.util.List;

/**
 * Created by Administrator on 2018/3/17.
 */
public interface RoleService extends BaseService<SysRole>{

    /**
     * 根据用户id 查询角色集合
     * @param id
     * @return
     */
    public List<SysRole> findByUserId(Integer id);

    /**
     * 根据id查询实体
     * @param id
     * @return
     */
    public SysRole findById(Integer id);

}
